//
//  PromotionDetailsModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/9.
//

import UIKit
import ObjectMapper
class PromotionDetailsModel: Mappable {
    var code: String?
    var msg: String?
    var data: PromotionDetailsDataModel?
    func mapping(map: Map) {
        code <- map["code"]
        msg <- map["msg"]
        data <- map["data"]
    }
    required init?(map: Map) {
        
    }
}

class PromotionDetailsDataModel:  Mappable {
    var couponType: NSInteger?
    var id: NSInteger?
    var integral: NSInteger?
    var name: String?
    var sendMethod: NSInteger?
    var sharePopularize: String?
    var validEnd: String?
    
    func mapping(map: Map) {
        couponType <- map["couponType"]
        id <- map["id"]
        integral <- map["integral"]
        name <- map["name"]
        sendMethod <- map["sendMethod"]
        sharePopularize <- map["sharePopularize"]
        validEnd <- map["validEnd"]
    }
    required init?(map: Map) {
        
    }
}
